import React from 'react'

import createApp from 'tempest.js'
import reducer from './modules'
import App from './containers/PostsContainer'

import 'antd/dist/antd.css'

function render(Component) {
  createApp()
    .reducer({
      posts: reducer,
    })
    .view(store => <Component />)
    .run('#root')
}

render(App)
